# Contributor: Emma Nora Theuer <kontakt@entheuer.de>
# Contributor: Dominika Liberda <ja@sdomi.pl>
# Maintainer: Emma Nora Theuer <kontakt@entheuer.de>
pkgname=qtile
pkgver=0.22.1
pkgrel=2
pkgdesc="A full-featured, hackable tiling X11 window manager written and configured in Python"
url="https://github.com/qtile/qtile"
arch="all"
license="MIT"
depends="
	pango
	py3-cairocffi
	py3-dbus-next
	py3-xcffib
	"
makedepends="
	libx11-dev
	pango
	py3-cairocffi
	py3-cffi
	py3-dbus-next
	py3-setuptools
	py3-setuptools_scm
	"
options="!check" # broken due to unavailable packages
subpackages="$pkgname-pyc"
source="qtile-$pkgver.tar.gz::https://github.com/qtile/qtile/archive/v$pkgver.tar.gz
	0001-use-xcffib-1.4.0-s-new-in-line-APIs.patch
	"

build() {
	export SETUPTOOLS_SCM_PRETEND_VERSION=$pkgver
	python3 setup.py build
}

package() {
	python3 setup.py install --skip-build --root="$pkgdir"
}

sha512sums="
ad638ac6f2eb0f401f82fac8210f8c3812133d133d4cee4b3f625bb28accbe81d831b48dc8d7f2462dc9f92675a2135c81166888b4ff7a9d5f3551780599b6c6  qtile-0.22.1.tar.gz
ed9f37a4572fb771ec393c24be614368ed1b379b95b523b9a500a772aa709d252600c917e00d2f6566ecf1d31ccc3c2a77ff9212b9d26183f17a059792c8600a  0001-use-xcffib-1.4.0-s-new-in-line-APIs.patch
"
